﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="AddNewsServlet"  method="post">
    <div class="newsID">
      新 闻ID :<input type="text" name="newid" />
    </div>
    <div class="category">
      新闻分类:<input type="text" name="category" />
    </div>
    <div class="newsTitle">
      新闻标题:<input type="text" name="title" />
    </div>
    <div class="newsContent">
        新闻内容:<textarea rows="5" cols="40" name="newcontent"></textarea>
    </div>
    <div class="author">
      作 者:<input type="text" name="author"/>
    </div>
    <div class="newsDate">
      时 间:<input type="text" name="writedate"/>
    </div>
    <div class="addNews">
      <input type="submit" value="添加"/>
    </div>
</form>
</body>
<style>
    form{
        height:400px ;
        width: 430px;
        margin: 0 auto;
    }
    .newsID input{
        width: 20px;
        margin-bottom: 20px;
    }
    .category input{
        width: 80px;
        margin-bottom: 20px;
    }
    .newsTitle input{
        width: 160px;
        margin-bottom: 20px;
    }
    .newsContent textarea{
        margin-bottom: 20px;
        vertical-align: top
    }
    .author input{
        width: 80px;
        margin-bottom: 20px;
    }
    .newsDate input{
        width: 80px;
        margin-bottom: 20px;
    }
    .addNews input{
        width: 80px;
        height: 60px;
        float: right;
        margin-right: 15px;
        font-size: 18px;
    }
</style>
</html>